package com.xinqi.modules.databank.v2.convert;


import com.xinqi.common.base.dto.QuestionBaseDTO;
import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.databank.v1.domain.CourseQuestionLibraryEntity;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 课程题库表转换
 *
 * @author: system
 * @date: 2023/03/15
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CourseQuestionLibraryConvert {

    public abstract CourseQuestionLibraryEntity newEntity(CourseQuestionLibraryEntity s);

    public abstract List<QuestionBaseDTO> convertBase(List<CourseQuestionLibraryEntity> list);

}
